<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
      <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="jquery/jquery-1.8.2.js"></script>
<script type="text/javascript">
	function update(contractNo) {
		$.post(
			"update",
			{contractNo:contractNo},
			function (obj) {
				if(obj>0){
					alert("修改成功");
					lacation="list";
				}else{
					alert("修改失败");
					lacation.reload();
				}
			}
			
		);
	}

</script>
<body>
	<form action="update" method="post">
		合同编号<input type="reset" name="contractNo" value="${d.contractNo }">
		买方<input type="reset" name="buyer" value="${d.buyer }">
		卖方<input type="text" name="seller" value="${d.seller }">
		日期<input type="date" name="contractDate" value="<fmt:formatDate value="${d.contractDate }"/>">
		总值<input type="text" name="totalValue" value="${d.totalValue }">
		附件<input type="text" name="appendx" value="${d.appendx }">
		备注<input type="text" name="remarks" value="${d.remarks }">
		<input type="submit" value="提交" onclick="update(${d.contractNo })">
	</form>
</body>
</html>